﻿package control
{
    import com.core.*;

    public class MoveTipsControl extends Control
    {

        public function MoveTipsControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "movetips")
            {
                if (param2.property == "error")
                {
                    ModelProxy.change("mainui", "notice", {data:param2.newvalue});
                }
                else if (param2.property == "error1")
                {
                    ModelProxy.change("mainui", "notice", {data:param2.newvalue.data, color:param2.newvalue.color});
                }
            }
            else if (param1.getName() == "movetips1")
            {
                if (param2.property == "error")
                {
                    this.target.addTips(param2.newvalue);
                }
            }
            return;
        }// end function

    }
}
